/*
 ============================================================================
 Name        : ljf_util.h
 Author      : ljf
 Version     :
 Copyright   : Your copyright notice
 Description : use to store public typedef struct or MICRO or enum
 History     : 2020/01/17 init versoin
 ============================================================================
 */
#ifndef __LJF_UTIL_H__
#define __LJF_UTIL_H__

#define B_TO_KB(val) val>>10
#define B_TO_MB(val) val>>20
#define B_TO_GB(val) val>>30
#define B_TO_TB(val) val>>40

#define STEP_TRANS B_TO_KB


#define ACQ_CYCLE_TIME 10 //config the Acquisition cycle for system info(second)

#define DB_HOST "localhost"
#define DB_NAME "fastadmin"
#define DB_USR "root"
#define DB_PWD "123456"
#define DB_PORT 3306

#endif

